/* Copyright (c) 2025 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

 #define LUA_LIB

 #include "luawrapper.h"
 #include "luafilter/l_certificate.h"
 #include "luafilter/l_measurement_set.h"
 #include "luafilter/l_measurement.h"
 #include "luafilter/l_signed_measurement.h"
 #include "luafilter/l_integrity.h"
 #include "luafilter/l_callbacks.h"
 #include "luafilter/l_responder_collection.h"
 
 LUA_EXPORT int32_t luaopen_spdm_core(lua_State *L)
 {
     luaL_checkversion(L);
     luawrap::stack_table t = luawrap::stack::new_table(L);
     LCertificate::register_to(L, t);
     LMeasurementSet::register_to(L, t);
     LMeasurement::register_to(L, t);
     LSignedMeasurement::register_to(L, t);
     LComponentIntegrity::register_to(L, t);
     LCallbacks::register_to(L, t);
     ResponderCollection::register_to(L, t);
 
     return 1;
 }